package com.bsi.rd.config;

import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

/**
 * @ClassName InitFrameWorkConfig
 * @Author LiuSong
 * @Date 2020/8/6 11:07
 * @Version 1.0
 * @Description 工程启动的配置
 */
public class InitFrameWorkConfig extends AbstractAnnotationConfigDispatcherServletInitializer {
    @Override
    protected Class<?>[] getRootConfigClasses() {
        // 配置spring的配置类
        return new Class[]{SpringApplicationConfig.class};
    }

    @Override
    protected Class<?>[] getServletConfigClasses() {
        // 配置spring mvc的配置类
        return new Class[]{SpringMvcConfig.class};
    }

    @Override
    protected String[] getServletMappings() {
        return new String[]{"/"};
    }
}
